<!DOCTYPE html>
<html>
    <head>
        <meta charset = UTF-8>
    </head>
    <body>
        <script type="text/javascript">
            for (var n = 1; n < 10; n++) {
            for (var m = 1; m <= n; m++) {
                document.write(m + "x" + n + "=" + (m * n) + "<span>&nbsp;</span>");
            }
            document.write("<br/>");
        }
        </script>
    </body>
</html>    
